body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header-image {
    overflow: hidden;
    height: 0;
    transition: height 5s ease-in-out;
}

.header-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

#closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 100;
}

.container {
    width: 80%;
    margin: 0 auto;
    border: 2px solid black;
}

.navbar {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: inline;
    margin-right: 10px;
}

.navbar li a {
    text-decoration: none;
    color: #333;
}

.content {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.carousel, .latest-news {
    width: 48%;
    border: 1px solid black;
    padding: 10px;
}

.carousel-inner {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.main-content {
    border: 1px solid black;
    padding: 10px;
    margin-top: 10px;
}

.footer {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: center;
    border: 1px solid black;
    margin-top: 10px;
}

.back-to-top {
    display: none; /* 默认隐藏按钮 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: orange;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
}